<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- script不定义type。默认就是写普通js
        如果使用模块的语法，需要设置type = module（模块）
    -->
    <script type="module">
        import {Person} from "./b.js"

        let p = new Person("ls",12);
        console.log(p);

    </script>
</body>
</html>